<template>
	<view class="content">
		<view style="width: 670rpx;text-align: center;color: #fff;font-size: 35rpx;">个人中心</view>
		<view style="width: 670rpx;display: flex;flex-direction: row;align-items: center;margin-top: 40rpx;">
			<image style="width: 70rpx;height: 70rpx;"></image>
			<view @click="login()" style="color: #fff;font-size: 40rpx;margin-left: 30rpx;">登录/注册</view>
		</view>

		<view style="width:670rpx;border-radius: 20rpx;background-color: #fff;
		display: flex;flex-direction: row;justify-content: center;margin-top: 40rpx;">
			<view class="tabr" v-for="(item,index) in tabList">

				<image :src="item.imgUrl" style="width: 52rpx;height: 44rpx;"></image>
				<view style="color: #999999;font-size: 25rpx;margin-top: 15rpx;">{{item.name}}</view>
			</view>
		</view>


		<view style="width:670rpx; height: ;  background-color: #fff;border-radius: 20rpx;
		display: flex;flex-direction: column;align-items: center;margin-top: 50rpx;">
			<view style="width: 630rpx;padding-top: 20rpx;padding-bottom: 20rpx;
			display: flex;flex-direction: row;justify-content: space-between;
			border-bottom: 1rpx solid #999999;">
				<view>每日文章</view>
				<image src="../../static/youJianTou.png" style="width:30rpx;height: 30rpx;"></image>
			</view>

			<view style="width: 630rpx;padding-top: 20rpx;padding-bottom: 20rpx;
			 display: flex;flex-direction: row;justify-content: space-between;">
				<view>关于房查查</view>
				<image src="../../static/youJianTou.png" style="width:30rpx;height: 30rpx;"></image>
			</view>
		</view>
	</view>
</template>

<script>
	var that;
	export default {
		data() {
			return {
				tabList: [{
						name: '我的关注',
						imgUrl: '../../static/my/gz.png',
						url: ''
					},
					{
						name: '浏览记录',
						imgUrl: '../../static/my/lljl.png',
						url: ''
					},
					{
						name: '帮我找房',
						imgUrl: '../../static/my/bwzf.png',
						url: ''
					},
					{
						name: '加入我们',
						imgUrl: '../../static/my/jrwm.png',
						url: ''
					}
				]
			}
		},
		onLoad() {
			that = this;
		},
		methods: {
			login() {
				uni.navigateTo({
					url: '/pages/login/login'
				})
			}
		}
	}
</script>

<style>
	.content {
		width: 100%;
		height: 100%;
		background-image: linear-gradient(to bottom, #ff0000, #ff6450, #fff, #fff);
		padding: 40rpx;
	}

	.tabr {
		padding-top: 30rpx;
		padding-bottom: 30rpx;
		width: 25%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}
</style>